
var options = {
	'Kit': [ 'Qiagen RNA extraction kit', 'Trizol' ],
	'Extract PBS': false
};

function print(items, options) {
	var kit_volume;
	if (options['Kit'] == 'Trizol') {
		kit_volume = items.map(function(item) {
			return 3.5 * parse_si(item.weight);
		});
	} else if (options['Kit'] == 'Qiagen RNA extraction kit') {
		kit_volume = items.map(function(item) {
			return 2.8 * parse_si(item.quantity);
		});
	}
	
	var proto = protocol();
	proto += step('Mix ' + options['Kit'] +
		' and water according to table below.');
	proto += table(items, [options['Kit'], 'Water'],
		[kit_volume, 10 - kit_volume]);
	proto += step('Spin tube in centrifuge at 5000 RPM.');
	proto += step('Add 5 mg of strawberries.');
	
	proto.outputs = items.map(function(item) {
		var rna = item;
		rna.type = 'RNA extract';
		rna.quantity = '';
		return rna;
	});
}

